<template>
  <view class="">
    分类页面
    <button @click="remove">删除</button>
    <view>------------------</view>
    <button @click="select">学历</button>
  </view>
</template>

<script setup>
  import { ref, computed } from 'vue'
  const remove = () => {
    uni.showModal({
      title: '请输入验证码',
      cancelText: 'No',
      cancelColor: '#999',
      confirmText: 'Yes',
      confirmColor: '#f00',
      editable: true,
      placeholderText: '请输入验证码',
      success: res => {
        console.log(res)
        if (res.confirm) uni.showToast({ title: '删除成功' })
      }
    })
  }

  let arrs = ['高中', '大专', '本科', '研究生']
  const select = () => {
    uni.showActionSheet({
      title: '请选择',
      itemList: arrs,
      success: res => {
        console.log(arrs[res.tapIndex])
      }
    })
  }

  uni.showNavigationBarLoading()
  setTimeout(() => {
    uni.setNavigationBarTitle({ title: '动态标题' })
    uni.hideNavigationBarLoading()
  }, 2000)
</script>

<style lang="scss">

</style>